// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addInterfaceCollectInfo POST /api/interfaceCollectInfo/add */
export async function addInterfaceCollectInfoUsingPost(
  body: API.InterfaceCollectInfoAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponselong>('/api/interfaceCollectInfo/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteInterfaceCollectInfo DELETE /api/interfaceCollectInfo/delete */
export async function deleteInterfaceCollectInfoUsingDelete(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteInterfaceCollectInfoUsingDELETEParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseboolean>('/api/interfaceCollectInfo/delete', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getInterfaceCollectInfoById GET /api/interfaceCollectInfo/get */
export async function getInterfaceCollectInfoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getInterfaceCollectInfoByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseInterfaceCollectInfo>('/api/interfaceCollectInfo/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listInterfaceCollectInfo GET /api/interfaceCollectInfo/list */
export async function listInterfaceCollectInfoUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listInterfaceCollectInfoUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListInterfaceCollectInfo>('/api/interfaceCollectInfo/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listInterfaceInfoAndCollectByPage GET /api/interfaceCollectInfo/list/page */
export async function listInterfaceInfoAndCollectByPageUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listInterfaceInfoAndCollectByPageUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageInterfaceAndCollectVO>('/api/interfaceCollectInfo/list/page', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** updateInterfaceCollectInfo POST /api/interfaceCollectInfo/update */
export async function updateInterfaceCollectInfoUsingPost(
  body: API.InterfaceCollectInfoUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseboolean>('/api/interfaceCollectInfo/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
